import request from '@/utils/request'
// 获取
export const getlistApi = (params: object) =>
	request({
		url: 'table/list',
		method: 'get',
		params
	})
// 新增
export const postlistApi = (data: object) =>
	request({
		url: 'table/save',
		method: 'post',
		data
	})
// 删除
export const deleteApi = (params) =>
	request({
		url: 'table/delete',
		method: 'get',
		params
	})

// 修改
export const postUpdatelistApi = (data: object) =>
	request({
		url: 'table/modify',
		method: 'post',
		data
	})

// 查询桌号是否存在
export const getNumberApi = (params: object) =>
	request({
		url: 'table/get-number',
		method: 'get',
		params
	})

// export function getApi(params) {
// 	return request({
// 		url: '',
// 		method: 'get',
// 		params
// 	})
// }